package com.miyu.common.pojo.cos;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 因为系统用户
 * 用户表
 *
 * @author longmy
 * @date 2022/02/25
 */
@Data
@Entity
@Table(name="cos_sys_user")
public class CosSysUser implements Serializable {
    /** 日志id */
    @Id
    @Column(name = "cos_id", nullable = false, length = 32)
    private String cosId;
    /** 登录用户 */
    @Column(name = "cos_account",nullable = false ,length = 30)
    private String cosAccount;
    /** 用户名 */
    @Column(name = "cos_name",nullable = false ,length = 50)
    private String cosName;
    /** 密码 */
    @Column(name = "cos_password",nullable = false ,length = 80)
    private String cosPassword;
    /** 电子邮件 */
    @Column(name = "cos_email" ,nullable = true,length = 50)
    private String cosEmail;
    /** 电话 */
    @Column(name = "cos_phone" ,nullable = true,length = 11)
    private String cosPhone;
    /** 用户img */
    @Column(name = "cos_user_img",nullable = true ,length = 20)
    private String cosUserImg;
    /** 是否禁用 */
    @Column(name = "is_stop",nullable = false ,length = 1)
    private String isStop;
    /** 是否停用 */
    @Column(name = "is_use",nullable = false ,length = 1)
    private String isUse;
    /** 来源id */
    @Column(name = "source_id",nullable = true ,length = 32)
    private String sourceId;
    /** 来源类型 */
    @Column(name = "source_type",nullable = true ,length = 20)
    private String sourceType;
}
